using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace FeedStore2OPML
{
    [XmlRoot("head")]
    public class Head
    {
        private string title;

        [XmlElement("title")]
        public string Title
        {
            get { return title; }
            set { title = value; }
        }

        private DateTime dateCreated;

        [XmlIgnore]
        public DateTime DateCreated
        {
            get { return dateCreated; }
            set { dateCreated = value; }
        }

        [XmlElement("dateCreated")]
        public string DateCreatedString
        {
            get
            {
                return DateCreated.ToString("R");
            }
            set
            {
                DateCreated = DateTime.Parse(value);
            }
        }

        private string ownerName;

        [XmlElement("ownerName")]
        public string OwnerName
        {
            get { return ownerName; }
            set { ownerName = value; }
        }

    }
}
